package org.mspring.mlog.support;

import org.mspring.mlog.biz.ArticleViewCountService;
import org.mspring.mlog.cache.ArticleCacheService;
import org.mspring.mlog.cache.TagCacheService;
import org.mspring.mlog.service.ArticleEntityService;
import org.mspring.mlog.service.ArticleTagEntityService;
import org.mspring.mlog.service.CategoryEntityService;
import org.mspring.mlog.service.CommentEntityService;
import org.mspring.mlog.service.ConfigEntityService;
import org.mspring.mlog.service.TagEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Gao Youbo
 * @since 2015-01-04 14:23
 */
@Component
public class ServiceContext {
    private ArticleEntityService articleEntityService;
    private ArticleTagEntityService articleTagEntityService;
    private CategoryEntityService categoryEntityService;
    private CommentEntityService commentEntityService;
    private ConfigEntityService configEntityService;
    private TagEntityService tagEntityService;
    private ArticleViewCountService articleViewCountService;
    private ArticleCacheService articleCacheService;
    private TagCacheService tagCacheService;

    public ArticleEntityService getArticleEntityService() {
        return articleEntityService;
    }

    @Autowired
    public void setArticleEntityService(ArticleEntityService articleEntityService) {
        this.articleEntityService = articleEntityService;
    }

    public ArticleTagEntityService getArticleTagEntityService() {
        return articleTagEntityService;
    }

    @Autowired
    public void setArticleTagEntityService(ArticleTagEntityService articleTagEntityService) {
        this.articleTagEntityService = articleTagEntityService;
    }

    public CategoryEntityService getCategoryEntityService() {
        return categoryEntityService;
    }

    @Autowired
    public void setCategoryEntityService(CategoryEntityService categoryEntityService) {
        this.categoryEntityService = categoryEntityService;
    }

    public CommentEntityService getCommentEntityService() {
        return commentEntityService;
    }

    @Autowired
    public void setCommentEntityService(CommentEntityService commentEntityService) {
        this.commentEntityService = commentEntityService;
    }

    public ConfigEntityService getConfigEntityService() {
        return configEntityService;
    }

    @Autowired
    public void setConfigEntityService(ConfigEntityService configEntityService) {
        this.configEntityService = configEntityService;
    }

    public TagEntityService getTagEntityService() {
        return tagEntityService;
    }

    @Autowired
    public void setTagEntityService(TagEntityService tagEntityService) {
        this.tagEntityService = tagEntityService;
    }

    public ArticleViewCountService getArticleViewCountService() {
        return articleViewCountService;
    }

    @Autowired
    public void setArticleViewCountService(ArticleViewCountService articleViewCountService) {
        this.articleViewCountService = articleViewCountService;
    }

    @Autowired
    public void setArticleCacheService(ArticleCacheService articleCacheService) {
        this.articleCacheService = articleCacheService;
    }

    public ArticleCacheService getArticleCacheService() {
        return articleCacheService;
    }

    @Autowired
    public void setTagCacheService(TagCacheService tagCacheService) {
        this.tagCacheService = tagCacheService;
    }

    public TagCacheService getTagCacheService() {
        return tagCacheService;
    }
}
